<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="./lib/vue.min-2.6.11.js"></script>
</head>
<body>
    <div id="app">
        <input type="button" value="按钮" title="mytitle">
        <input type="button" value="按钮绑定title值" v-bind:title="mytitle">
        <input type="button" v-bind:value="msg" v-bind:title="mytitle">
        <input type="button" :value="msg" :title="mytitle">

        <p>-------------------------事件绑定：----------------------------------------</p>

        <input type="button" :value="msg" :title="mytitle" id="clickBtn">

        <input type="button" value="vue 戳我" :title="mytitle" v-on:click="alert('点击了 vue 戳我')">
        <input type="button" value="vue1 戳我" :title="mytitle" v-on:mouseover="alert('mouseover vue1 戳我')">

        <input type="button" value="点击我就show你看" v-on:click="show">
        <input type="button" value="点击我就show你看111" @click="show">
    </div>
</body>
<script>
    const vm=new Vue({
        el:'#app',
        data:{
            mytitle:'这是一个小按钮',
            msg:'这是按钮的值'
        },
        methods:{
            show:function(){
                alert('点击了 按钮 就 show 一下')
            }
        }
    })

    document.getElementById('clickBtn').onclick = function () {
            alert('点击了 按钮')
        }
</script>
</html>